//
//  WeatherViewController.swift
//  Weather
//
//  Created by 王友俊 on 16/3/14.
//  Copyright © 2016年 wangyj. All rights reserved.
//

import UIKit

class WeatherViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        self.navigationItem.rightBarButtonItem = UIBarButtonItem(title: "Next", style: .Plain, target: self, action: "goNext")
        self.navigationItem.backBarButtonItem = UIBarButtonItem(title: "Back", style: .Plain, target: nil, action: nil)

    }
    
    func goNext()
    {
        print("HELLO")
        let ChildVC = WeatherChildViewController()
        self.navigationController?.pushViewController(ChildVC, animated: true)
    }


    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
    }
    


}
